package ie.dkit.semanticPhotoWeb.server.persistence.storageObjects;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * @author Sebastian Ruehl
 * 
 * This program is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software
 * Foundation
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
 * details.
 * 
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
 * Place, Suite 330, Boston, MA 02111-1307 USA
 */

@Entity
public class Interest {
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "interestID")
	private int interestID;

	@Basic
	private String about;

	@Basic
	private String title;

	/**
	 * 
	 */
	public Interest() {

	}

	/**
	 * @param id
	 * @param about
	 * @param title
	 */
	public Interest(int id, String about, String title) {
		super();
		this.interestID = id;
		this.about = about;
		this.title = title;
	}

	/**
	 * @return the about
	 */
	public String getAbout() {
		return about;
	}

	/**
	 * @param about
	 *            the about to set
	 */
	public void setAbout(String about) {
		this.about = about;
	}

	/**
	 * @return the id
	 */
	public int getInterestID() {
		return interestID;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setInterestID(int id) {
		this.interestID = id;
	}

	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * @param title
	 *            the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}
}
